<template>
   <el-form-item :label="label" :prop="prop"  
   :rules="[
      { required: importance, message: ' '},
    ]">
        <slot name="input" class="wl-input-item" :columnData="itemData"></slot>
    </el-form-item >
</template>
<script>
export default {
  props: {
    label: {
      type: String,
      default: ""
    },

    itemType: {
      type: String,
      default: "input"
    },

    itemData: {
      type: Object
    },

    prop: {
      type: String
    },

    importance: {
      type: Boolean,
      default: true
    }
  },

  data() {
    return {
      val: ""
    };
  },

  methods: {
    change(val) {}
  },

  created() {}
};
</script>
